<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/15
 * Time: 23:21
 */

namespace util;


class ControllerDiBuilder extends DiBuilder
{
    public function buildDi()
    {
        // TODO: Implement buildDi() method.
        $this->setController('W_index',"inc\web\index");
    }

    private function setController($diKey,$className){
        $this->di->set($diKey,$className)
            ->setArguments(array('%_W%','%_GPC%'))
        ;
    }
}